package com.yang.service.impl;

import com.yang.dao.EmailTemplateDao;
import com.yang.entity.EmailTemplate;
import com.yang.service.EmailTemplateServer;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yangdacheng
 * @title: EmailTemplateServiceImpl
 * @projectName note_api
 * @description: TODO
 * @date 2022/3/7 8:12 下午
 */
@Service("emailTemplateServiceImpl")
public class EmailTemplateServiceImpl implements EmailTemplateServer {

    @Resource
    private EmailTemplateDao emailTemplateDao;

    @Override
    public EmailTemplate getTemplateByID(String tID) {
        return emailTemplateDao.getTemplateByID(tID);
    }

    @Override
    public Boolean updTemplateByID(EmailTemplate emailTemplate) {
        return emailTemplateDao.updTemplateByID(emailTemplate);
    }
}
